package cn.vawn.exam.service;

import cn.vawn.base.dto.PageDTO;
import cn.vawn.base.dto.RequestPageDTO;
import cn.vawn.exam.entity.Questions;

import java.util.List;
import java.util.Map;

public interface IQuestionsService {

	List<Map<String, Object>> getAllQuestions();

	PageDTO getPartQuestions(RequestPageDTO requestPageDTO, String content,
			String type, String startTime, String endTime);
	
	void updateQuestion(Questions question);
	
	void deleteQuestion(int questionsId);
	
	void addQuestion(String content, String classType, int optionType, String answerIds);
	
	List<Questions> batchQuestions(List<Integer> questionIds);
	
	List<String> getAllQuestionClassType();

	PageDTO serachQuestions(RequestPageDTO requestPageDTO);

	//批量查询数据
	List<Questions> batchSelectQuestionsByIds(List<Integer> questionsIds);

	//查询一条数据
	Map<String, Object> getQuestions(Integer questionsId);

	Questions getAnswers(int questionId);

	//获取序号表中的所有的题目id,病按断是否包含制定id
	boolean checkQuestionId(int questionsId);
	
}

